package edu.psu.collegerecommendationhelper;

import java.util.List;

import edu.psu.collegerecommendationtool.model.DemographicInfo;
import edu.psu.collegerecommendationtool.model.EducationInfo;
import edu.psu.collegerecommendationtool.model.PreferenceInfo;

public class UserToClassifierTranslator {

	private ClassifierData classData;
	
	public UserToClassifierTranslator() {
		classData = new ClassifierData();
	}
	
	public ClassifierData translateData(DemographicInfo demogrInfo,
			EducationInfo edu, PreferenceInfo pref) {
				
		classData.setACTComp25(edu.getReadACT());
		classData.setACTComp75(edu.getReadACT());
		classData.setACTEng25(edu.getEnglishACT());
		classData.setACTEng75(edu.getEnglishACT());
		classData.setACTMath25(edu.getMathACT());
		classData.setACTMath75(edu.getMathACT());
		//classData.setACTWriting25();
		//classData.setACTWriting75();
		classData.setAfricanRace(demogrInfo.getRace());
		//classData.setAge(demogrInfo.getAge());
		classData.setAmerIndRace(demogrInfo.getRace());
		//classData.setAPCredit();
		classData.setAsianRace(demogrInfo.getRace());
		classData.setHawaiianRace(demogrInfo.getRace());
		classData.setHighschoolGPA(edu.getGPA());
		classData.setHispRace(demogrInfo.getRace());
		classData.setNonResidentAlienRace(demogrInfo.getRace());
		classData.setPublicPrivate(pref.getPubpri());
		classData.setSATMath25(edu.getMathSAT());
		classData.setSATMath75(edu.getMathSAT());
		classData.setSATReading25(edu.getCreadSAT());
		classData.setSATReading75(edu.getCreadSAT());
		classData.setSATWriting25(edu.getWriteSAT());
		classData.setSATWriting75(edu.getWriteSAT());
		//classData.setSchoolSize(iNSTSIZE);
		classData.setSex(demogrInfo.getSex());
		classData.setStateAbbr(pref.getLocation());
		classData.setStudentFacultyRation(pref.getSexratio());
		//classData.setTotalFemales(eFTOTLW);
		//classData.setTotalMales(eFTOTLM);
		classData.setTotalSize(pref.getSize());
		classData.setUnknownRace(demogrInfo.getRace());
		classData.setWhiteRace(demogrInfo.getRace());
		
		return classData;
		
	}
	
}
